﻿using System;

namespace HY.Entity
{
    /// <summary>
    /// 基类，不需要这些属性的类可不继承该类
    /// </summary>
    public abstract class EntityBaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public virtual int CreateUserID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 最后修改者
        /// </summary>
        public virtual int? LastModifyUserID { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public virtual DateTime? LastModifyDate { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public virtual bool IsDeleted { get; set; }
    }
}
